package wwl.lsf.tools;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class 考勤AI预测 {


    @ExcelProperty("笔名")
    private String name;

    @ExcelProperty("加班时长单位分")
    private Integer jiabanshichang;


    @ExcelProperty("加班时长下限")
    private Integer jiabanshichang_min;

    @ExcelProperty("备注信息")
    private String normalNotes;


    private String employeeId;

    public 考勤AI预测(String name, Integer jiabanshichang, String normalNotes, String employeeId) {
        this.name = name;
        this.jiabanshichang = jiabanshichang;
        this.normalNotes = normalNotes;
        this.employeeId = employeeId;
    }

    public void setJiabanshichang(Integer integer) {

        if (integer <= 40) {
            this.normalNotes = "这个有点C了,心理医生";
        } else if (integer <= 60) {
            this.normalNotes = "这个就是B了,游泳健健";
        } else if (integer > 60) {
            this.normalNotes = "有A的潜质,这个月你是卷王你牛逼";
        }
        this.jiabanshichang = integer;
    }
}
